#include "io.h"
#include "draw.h"

void puts(char far *s)
{
	uint16 code = 0;
	if (s == NULL)
		return;

	while (*s) {
		if ((uint8)(*s) < 0xa0) {
			putc((uint8)(*s));
			s++;
		} else {
			uint8 px, py;
			get_point(&px, &py);
			code = *((uint16 far *)s);
			draw_hz(px, py, code);
			px += 2;
			set_point(px, py);
			s += 2;
		}
	}
}
